package test02;

/**
 * @Author czl
 * @Date 2024-04-11
 */
public class Lion extends Animal{
    public void move(IMove im) {
        im.move();
    }

    public void eat(){
        System.out.println("吃");
    }

    public void buShi1() {
        move(new IMove() {
            @Override
            public void move() {
                Lion.super.run();
            }
        });
    }

    public void buShi2() {
        move(super::run);
    }

    public void buShi3() {
        move(super::run);
    }

    public void buShi4() {
        move(this::eat);
    }
}
